<div class="rounded table" style="width: 98%;">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="box_top">
        <thead class="thead">
            <tr class="space">
                <th colspan="10">编辑会员</th>
            </tr>
        </thead>
    </table>
    <form action="{:U('Admin/Member/doSaveMember')}" method="post" id="doEditMember" class="formvalidate">
        <table class="list" cellpadding="0" cellspacing="1" border="0">
            <tbody>
                <tr class="even">
                    <td class="name">
                        <label class="validation"><span class="spanMsg">*</span>用户名:</label>
                    </td>
                    <td>
                        <input name="m_name" type="text" class="input rounded" value="{$data.m_name}" size="30" maxlength="50" required validate='{ required:true,maxlength:30,remote:"{:U("Admin/Member/checkName","m_id=$data[m_id]")}"}' /> 
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="even">
                    <td class="name" width="150">
                        <label class="validation">
                            密码：
                        </label>

                    </td>
                    <td>
                        <input id="m_passwd" name="m_passwd" type="password" class="input rounded" value="" size="30" maxlength="50" validate="{ rangelength:[6,20]}" /> 
                    </td>
                    <td class="field">
                        <img title="6 - 20个字符组成，只能使用数字、字母和下划线" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16" style="line-height: 16px;">
                    </td>
                </tr>
                <tr class="odd">
                    <td class="name">
                        <label class="validation">
                            确认密码：
                        </label>
                    </td>
                    <td>
                        <input type="password" class="input rounded" name="confirm_password" size="30" value=""  validate="{ rangelength:[6,20],equalTo:'#m_passwd'}">

                    </td>
                    <td class="field">
                        <img title="6 - 20个字符组成，只能使用数字、字母和下划线" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">
                    </td>
                </tr>
                <tr class="even">
                    <td class="name" width="150">
                        <label class="validation">
                            昵称：
                        </label>
                    </td>
                    <td>
                        <input name="m_nickname" type="text" class="input rounded" value="{$data.m_nickname}" size="30" maxlength="50" validate="{ username:true}" /> 
                    </td>
                    <td class="field">
                        <img title="5 - 50个字符组成，只能使用数字、字母和下划线" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">
                    </td>
                </tr>
                <tr class="odd">
                    <td class="name">
                        <label class="validation">
                            <span class="spanMsg">*</span>会员等级：
                        </label>
                    </td> 
                    <td>
                        <select name="ml_id" class="select rounded" style="font-family:'Courier New',Courier,monospace;" validate="{ selected:true}">
                            <option value='0'>--请选择--</option>
                            <volist name="mLevel" id="ml">
                                <option <if condition="$ml.ml_id eq $data[ml_id]">selected="selected"</if> value="{$ml.ml_id}">{$ml.ml_name}</option>
                            </volist>
                        </select>
                        
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="even">
                    <td class="name" width="150">
                        <label class="validation">
                            <span class="spanMsg">*</span>性别：
                        </label>
                    </td>  
                    <td class="rowform">
                        <ul>

                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_sex eq '1'">checked="checked"</if> value="1" name="m_sex">男</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_sex eq '2'">checked="checked"</if> value="2" name="m_sex">女</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio"  <if condition="$data.m_sex eq '0'">checked="checked"</if> value="0" name="m_sex">保密</label>
                            </li>
                        </ul>
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr class="odd">
                    <td class="name" width="150">
                        <label class="validation">
                            生日：
                        </label>
                    </td> 
                    <td class="rowform">
                        <ul>

                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_birthtype eq '0'">checked="checked"</if> value="0" name="m_birthtype">公历生日</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_birthtype eq '1'">checked="checked"</if> value="1" name="m_birthtype" disabled>农历生日</label>
                            </li>
                        </ul>
                    </td>
                    <td class="field">
                        <img title="农历生日还在开发阶段……" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				
                    </td>
                </tr>
                <tr>
                    <td class="name"></td>
                    <td>
                        <input type="text" name='m_birth_time' class='datetime' value="{$data.m_birth_time}">
                    </td>
                    <td class="field"></td>
		</tr>
                <tr>
                    <td class="name" width="150">
                        <label class="validation">
                            <span class="spanMsg">*</span>现居地：
                        </label>
                    </td>  
                    <td class="rowform select_type">
                        <include file="Member:address" />				
                    </td>
                    <td class="field">
                        <img title="" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				
                    </td>
                </tr>
                <tr>
                    <td class="name">
                        <label class="validation">
                            邮箱：
                        </label>
                    </td> 
                    <td>
                        <input name="m_email" type="text" class="input rounded" value="{$data.m_email}" size="30" maxlength="50" validate="{ email:true}" /> 
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            头像：
                        </label>
                    </td> 
                    <td>
                        <img src="__PUBLIC__/{$data.m_pic|default='Admin/images/default_avatar.jpg'}" title="{$data.m_name}--会员头像请在前台编辑" width="40" height="40" alt="{$data.m_name}">
                    </td>
                    <td class="field">
                        <img title="会员头像请在前台编辑" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">
                    </td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            QQ：
                        </label>
                    </td> 
                    <td>
                        <input name="m_qq" type="text" class="input rounded" value="{$data.m_qq}" size="30" /> 
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            个人说明：
                        </label>
                    </td>
                    <td>
                        <textarea class="text-input textarea" id="wysiwyg" name="m_intro" rows="10" cols="75">{$data.m_intro}</textarea>
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            认证用户：
                        </label>
                    </td>
                    <td>
                        <input name="m_enteruser" type="checkbox" class="input rounded" <if condition="$data.m_enteruser eq '1'">checked</if> size="30" /> 
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="odd">
                    <td class="name" width="150">
                        <label class="validation">
                            <span class="spanMsg">*</span>状态：
                        </label>
                    </td> 
                    <td class="rowform">
                        <ul>

                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_status eq '0'">checked="checked"</if> value="0" name="m_status">未审核</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.m_status eq '1'">checked="checked"</if> value="1" name="m_status">已审核</label>
                            </li>
                        </ul>
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            登陆信息：
                        </label>
                    </td>
                    <td>
                        {$data.m_login_time}&nbsp;|&nbsp;{$data.m_login_ip}
                    </td>
                    <td class="field"></td>
                </tr>
                <tr class="even">
                    <td class="name">
                        <label class="validation">
                            注册信息：
                        </label>
                    </td>
                    <td>
                        {$data.m_reg_time}&nbsp;|&nbsp;{$data.m_reg_ip}
                    </td>
                    <td class="field"></td>
                </tr>
            </tbody>
        </table>
        <table class="table top_line">
            <tbody>
                <tr>
                    <td align="center" height="60" colspan="2">
                        <input type="hidden" value="{$data.m_id}" name="m_id" />
                        <input id="submit" class="btn" type="submit" value="提交">
                        <input type="reset" id="reset" class="btn reset" value="重置">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>